package com.stlm2.dems.dao;

import com.stlm2.dems.entity.PurchaseOrder;
import com.stlm2.core.base.BaseDao;

public interface PurchaseOrderDao extends BaseDao<PurchaseOrder> {

    PurchaseOrder getByCode(String code);

    PurchaseOrder getByIdForUpdate(Integer id);

    Integer purchaseOrderNum(Integer userId,Integer orderStateValue);
    //待评价订单数
    Integer purchaseOrderNum2(Integer userId);
}